-- --------------------------------------------------------------------- --
-- provide code analysis & code indent & code highlight support for nvim --
-- --------------------------------------------------------------------- --
return {
    "nvim-treesitter/nvim-treesitter",
    build = ":TSUpdate",
    config = function ()
        local tsconfig = require("nvim-treesitter.configs")
        tsconfig.setup({
            -- Install parsers synchronously (only applied to `ensure_installed`)
            sync_install = true,
            -- Automatically install missing parsers when entering buffer
            -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
            auto_install = true,

            highlight = { enable = true, },
            indent = { enable = true, },
        })
    end
}
